<template>
	<view class="charts-box">
		<qiun-data-charts type="area" :chartData="chartData" background="none" :animation="false" :opts="opts" />
	</view>
</template>

<script>

	export default {
		name: "tubiaoyi",
		data() {
			return {
				opts: {
					
						"type": "area",
						"canvasId": "",
						"canvas2d": false,
						"background": "none",
						"animation": true,
						"timing": "easeOut",
						"duration": 1000,
						"color": [
							"#1890FF",
							"#91CB74",
							"#FAC858",
							"#EE6666",
							"#73C0DE",
							"#3CA272",
							"#FC8452",
							"#9A60B4",
							"#ea7ccc"
						],
						"padding": [
							15,
							15,
							0,
							15
						],
						"rotate": false,
						"reserve": false,
						"fontSize": 13,
						"fontColor": "#666666",
						"enableScroll": false,
						"touchMoveLimit": 60,
						"enableMarkLine": false,
						"dataLabel": false,
						"dataPointShape": false,
						"dataPointShapeType": "solid",
						"xAxis": {
							"disabled": true,
							"axisLine": true,
							"axisLineColor": "#CCCCCC",
							"calibration": true,
							"fontColor": "#666666",
							"fontSize": 13,
							"rotateLabel": false,
							"itemCount": 5,
							"boundaryGap": "center",
							"disableGrid": true,
							"gridColor": "#CCCCCC",
							"gridType": "solid",
							"dashLength": 4,
							"gridEval": 1,
							"scrollShow": false,
							"scrollAlign": "left",
							"scrollColor": "#A6A6A6",
							"scrollBackgroundColor": "#EFEBEF"
						},
						"yAxis": {
							"disabled": true,
							"disableGrid": true,
							"splitNumber": 5,
							"gridType": "dash",
							"dashLength": 2,
							"gridColor": "#CCCCCC",
							"padding": 10,
							"showTitle": false,
							"data": []
						},
						"legend": {
							"show": false,
							"position": "bottom",
							"float": "center",
							"padding": 5,
							"margin": 5,
							"backgroundColor": "rgba(0,0,0,0)",
							"borderColor": "rgba(0,0,0,0)",
							"borderWidth": 0,
							"fontSize": 13,
							"fontColor": "#666666",
							"lineHeight": 11,
							"hiddenColor": "#CECECE",
							"itemGap": 10
						},
						"extra": {
							"area": {
								"type": "straight",
								"opacity": 0.2,
								"addLine": true,
								"width": 2,
								"gradient": false
							},
							"tooltip": {
								"showBox": false,
								"showArrow": false,
								"borderWidth": 0,
								"borderRadius": 0,
								"borderColor": "#000000",
								"borderOpacity": 0.7,
								"bgColor": "#000000",
								"bgOpacity": 0.7,
								"gridType": "solid",
								"dashLength": 4,
								"gridColor": "#CCCCCC",
								"fontColor": "#FFFFFF",
								"splitLine": true,
								"horizentalLine": false,
								"xAxisLabel": false,
								"yAxisLabel": false,
								"labelBgColor": "#FFFFFF",
								"labelBgOpacity": 0.7,
								"labelFontColor": "#666666"
							},
							"markLine": {
								"type": "solid",
								"dashLength": 4,
								"data": []
							}
						}
					
				},
				chartData: {
					"categories": [
						"2016",
						"2017",
						"2018",
						"2019",
						"2020",
						"2021"
					],
					"series": [{
							"name": "成交量A",
							"data": [
								35,
								8,
								25,
								37,
								4,
								20
							]
						},


					]
				}
			}
		}
	}
</script>

<style>
	.charts-box {
		width: 100%;
		height: 100%;
	}
</style>
